import Vue from 'vue'
import vuex from 'vuex'
Vue.use(vuex);

export default new vuex.Store ({
    state:{//state
        activeTheme:'',
        ShowMenu:true,
    },
    mutations:{
        menuActive(state,val){//这里的state对应着上面这个state
            state.activeTheme = val;
        },
        isShowMenu(state,val){
        	 state.ShowMenu = val;
        }
    }
})